package districting;

import java.awt.Color;

public class Candidate implements Colorable {

   private int id;

   private String surname;

   private String givenname;

   private Division division;

   private Party party;

   private int ballotPos;

   private boolean incumbent;

   public Candidate(int id, String surname, String givenname,
         Division division, Party party, int ballotPos, boolean incumbent) {
      this.id = id;
      this.surname = surname;
      this.givenname = givenname;
      this.division = division;
      this.party = party;
      this.incumbent = incumbent;
   }

   /**
    * @return the division
    */
   public Division getDivision() {
      return division;
   }

   /**
    * @param division
    *           the division to set
    */
   public void setDivision(Division division) {
      this.division = division;
   }

   /**
    * @return the iD
    */
   public int getId() {
      return id;
   }

   /**
    * @param id
    *           the iD to set
    */
   public void setId(int id) {
      this.id = id;
   }

   /**
    * @return the name
    */
   public String getSurname() {
      return surname;
   }

   /**
    * @param name
    *           the name to set
    */
   public void setSurname(String surname) {
      this.surname = surname;
   }

   /**
    * @return the party
    */
   public Party getParty() {
      return party;
   }

   /**
    * @param party
    *           the party to set
    */
   public void setParty(Party party) {
      this.party = party;
   }

   public Color getColor() {
      return party.getColor();
   }

}
